package com.mysteel.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mysteel.common.utils.PageUtils;
import com.mysteel.product.entity.SpuInfoDescEntity;
import com.mysteel.product.entity.SpuInfoEntity;
import com.mysteel.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author xc
 * @email xcremote@163.com
 * @date 2020-12-10 16:50:04
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存录入的商品信息
     * @param saveVo
     */
    void saveSpuInfo(SpuSaveVo saveVo);

    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    PageUtils queryPageOnCondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);

    /**
     * 通过skuId查询商品spu信息
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

